Use uv as Python SDK build backend - #27901
Merged
Merged
Conversation
charliemarsh-oai
marked this pull request as ready for review
June 12, 2026 16:24
konsti-openai
approved these changes
Jun 12, 2026
| [tool.uv.build-backend] | ||
| module-name = "openai_codex" | ||
| source-include = [ | ||
| "examples/README.md", |
| "README.md", | ||
| "pyproject.toml", | ||
| [tool.uv.build-backend] | ||
| module-name = "openai_codex" |
There was a problem hiding this comment.
That should be inferred, we don't need to set it.
charliemarsh-oai
enabled auto-merge (squash)
June 12, 2026 17:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace Hatchling with uv's build backend for the Python SDK. The backend infers the
src/openai_codexmodule from the normalized project name and standard source layout, so no uv-specific package configuration is required.This keeps Python packaging within the uv toolchain already used for dependency management and release builds. A controlled before-and-after PEP 517 comparison produced identical wheel package paths, bytes, permissions, and semantic metadata. The sdist retains the SDK package tree, root README, and project metadata while dropping the unrelated examples README that Hatch included through its broad include matching.